package com.ixuestar.entity;

/**
 * @entity 记录老师分数实体
 * @author SLunshine
 *
 */
public class Yxtestscores implements Comparable<Yxtestscores>{

	private String ytsId;
	private Double ytsScores;
	private Integer ytsRanking;
	private Integer ytsStatus;
	private String ixssId;
	private String yenId;
	private String ytsCreatetime;
	public String getYtsId() {
		return ytsId;
	}
	public void setYtsId(String ytsId) {
		this.ytsId = ytsId;
	}
	public Double getYtsScores() {
		return ytsScores;
	}
	public void setYtsScores(Double ytsScores) {
		this.ytsScores = ytsScores;
	}
	public Integer getYtsRanking() {
		return ytsRanking;
	}
	public void setYtsRanking(Integer ytsRanking) {
		this.ytsRanking = ytsRanking;
	}
	public Integer getYtsStatus() {
		return ytsStatus;
	}
	public void setYtsStatus(Integer ytsStatus) {
		this.ytsStatus = ytsStatus;
	}
	public String getIxssId() {
		return ixssId;
	}
	public void setIxssId(String ixssId) {
		this.ixssId = ixssId;
	}
	public String getYenId() {
		return yenId;
	}
	public void setYenId(String yenId) {
		this.yenId = yenId;
	}
	public String getYtsCreatetime() {
		return ytsCreatetime;
	}
	public void setYtsCreatetime(String ytsCreatetime) {
		this.ytsCreatetime = ytsCreatetime;
	}
	
	public Yxtestscores(String ytsId, Double ytsScores, Integer ytsRanking, Integer ytsStatus, String ixssId,
			String yenId, String ytsCreatetime) {
		super();
		this.ytsId = ytsId;
		this.ytsScores = ytsScores;
		this.ytsRanking = ytsRanking;
		this.ytsStatus = ytsStatus;
		this.ixssId = ixssId;
		this.yenId = yenId;
		this.ytsCreatetime = ytsCreatetime;
	}
	public Yxtestscores() {
		super();
	}
	@Override
	public int compareTo(Yxtestscores yxtestscores) {
		int code =0;
		if (ytsScores>yxtestscores.ytsScores) {
			code = -1;
		}else if (ytsScores==yxtestscores.getYtsScores()) {
			code = 0;
		}else if (ytsScores<yxtestscores.getYtsScores()) {
			code = 1;
		}
		return code;
	}
	@Override
	public String toString() {
		return "Yxtestscores [ytsId=" + ytsId + ", ytsScores=" + ytsScores + ", ytsRanking=" + ytsRanking
				+ ", ytsStatus=" + ytsStatus + ", ixssId=" + ixssId + ", yenId=" + yenId + ", ytsCreatetime="
				+ ytsCreatetime + "]";
	}
}
